import { $t } from '@vben/locales'
import {
    EnumReleaseStatus,
    EnumTaskSettlementType,
    EnumTaskStatus,
    EnumTaskType
} from '../enum/goods'
/**
 * 交付状态：0 未交付 1 已交付
 */
export const taskTypeOptions = [
    {
        label: $t('options.taskType.children.CC'),
        value: EnumTaskType.CC
    },
    {
        label: $t('options.taskType.children.AC'),
        value: EnumTaskType.AC
    }
]
/**
 * 任务状态选项
 */
export const taskStatusOptions = [
    {
        label: $t('options.taskStatus.children.notStarted'),
        value: EnumTaskStatus.NOT_STARTED
    },
    {
        label: $t('options.taskStatus.children.startedNoSales'),
        value: EnumTaskStatus.STARTED_NO_SALES
    },
    {
        label: $t('options.taskStatus.children.startedWithSales'),
        value: EnumTaskStatus.STARTED_WITH_SALES
    },
    {
        label: $t('options.taskStatus.children.ended'),
        value: EnumTaskStatus.ENDED
    },
    {
        label: $t('options.taskStatus.children.voided'),
        value: EnumTaskStatus.VOIDED
    }
]
/**
 * 发布状态选项
 */
export const releaseStatusOptions = [
    {
        label: $t('options.releaseStatus.children.notPublished'),
        value: EnumReleaseStatus.NOT_PUBLISHED
    },
    {
        label: $t('options.releaseStatus.children.published'),
        value: EnumReleaseStatus.PUBLISHED
    },
    {
        label: $t('options.releaseStatus.children.rejected'),
        value: EnumReleaseStatus.REJECTED
    }
]
/**
 * 任务结算类型选项
 */
export const taskSettlementTypeOptions = [
    {
        label: $t('options.taskSettlementType.children.platformAndAmazon'),
        value: EnumTaskSettlementType.PlatformAndAmazon
    },
    {
        label: $t('options.taskSettlementType.children.platform'),
        value: EnumTaskSettlementType.Platform
    },
    {
        label: $t('options.taskSettlementType.children.seller'),
        value: EnumTaskSettlementType.Seller
    }
]
